#include "Redis.h"

Redis()
:_pConnect(nullptr)
,_pReplu(nullptr)
{
    cout << "Redis() construct" << endl;
}

~Redis(){
    cout << "~Redis()" << endl;

    if(_pConnect){
        redisFree(_pConnect);
        _pConnect = nullptr;
    }

    if (_pReply)
    {
        redisFree(_pReply);
        _pReply = nullptr;
    }
}

bool connect(const string &host, int port){
    _pConnect = redisConnect(host.c_str(), port);
}

void set(string key, string value){

}

string get(string key){

}